package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.MerchantWithdraw;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * Created by DK on 16/12/12.
 */
@Repository
public interface MerchantWithdrawRepository extends JpaRepository<MerchantWithdraw, Long>, JpaSpecificationExecutor, MerchantWithdrawRepositoryCustom {
    MerchantWithdraw findByIdAndMallId(Long id, Long id1);

    MerchantWithdraw findByTransactionIdAndMallId(String merchantOrderNum, Long mallId);
}
